package comet

import (
	"gddgame.cc/galaxy/utils/cache"
	"gddgame.cc/galaxy/utils/def"
)

func NewLocalSocket(logger def.Logger) *Socket {
	memory := cache.Memory(logger)
	client := &clientInline{
		Logger:          logger,
		Store:           memory.Store("test"),
		sid:             "",
		authorization:   "",
		server:          nil,
		gateway:         nil,
		pp:              nil,
		allow:           nil,
		close:           nil,
		closed:          false,
		flow:            false,
		transportNotice: nil,
		app:             nil,
		iss:             nil,
		authority:       nil,
	}
	s := newSocket(0, nil, client)

	return s
}
